<%@ include file="/WEB-INF/jsp/includes.jsp" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %>

<title><fmt:message key="login.title"/></title>
</head>
<body>
<center>
  <h4><fmt:message key="login.header"/></h4>
  <form:form modelAttribute="loginModel" name="loginModel"
   action="/admin/login.do" method="post">
    <table>
      <%-- login errors --%>
      <tr>
        <th rowspan="4"><img src="/admin/imgs/jpatchworks.png"/></th>
        <td colspan="2"><form:errors path="username" cssClass="errors"/></td>
      </tr>

      <%-- login form --%>
      <tr>
        <td valign="bottom"><label><fmt:message key="login.username"/></label></td>
        <td valign="bottom"><form:input path="username" size="16"/></td>
      </tr>
      <tr>
        <td valign="top"><label><fmt:message key="login.password"/></label></td>
        <td valign="top"><form:password path="password" size="16"/></td>
      </tr>
      <tr>
        <td colspan="3" align="center" valign="top">
          <input type="submit" value="<fmt:message key="login.submit"/>"/>
        </td>
      </tr>
    </table>
  </form:form>
</center>
</body>
</html>
